using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.FIM
{
    [Table("FimMasBankAccount"), DataContract]
    public class MasBankAccount
    {

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "BankAccId", ResourceType = typeof(Resources.MasBankAccountsResource))]
        public int BankAccId { get; set; }

		[DataMember, Display(Name = "BankAccNo", ResourceType = typeof(Resources.MasBankAccountsResource))]
        public string BankAccNo { get; set; }

		[DataMember, Display(Name = "BankAccName", ResourceType = typeof(Resources.MasBankAccountsResource))]
        public string Name { get; set; }

		[DataMember, Display(Name = "BankAccNameEng", ResourceType = typeof(Resources.MasBankAccountsResource))]
        public string NameEng { get; set; }

        [ForeignKey("MasBankAccountType")]
		[DataMember, Display(Name = "BankAccTypeGrpId", ResourceType = typeof(Resources.MasBankAccountsResource))]
        public Nullable<int> BankAccTypeId { get; set; }

		[ForeignKey("Branch")]
		[DataMember, Display(Name = "BranchId", ResourceType = typeof(Resources.MasBankAccountsResource))]
        public int? BranchId { get; set; }

        [ForeignKey("MasBudgetSource")]
		[DataMember, Display(Name = "BgmSourceId", ResourceType = typeof(Resources.MasBankAccountsResource))]
        public int? BgmSourceId { get; set; }

        [ForeignKey("SavingBankAccount")]
		[DataMember, Display(Name = "SavingBankAccId", ResourceType = typeof(Resources.MasBankAccountsResource))]
        public Nullable<int> SavingBankAccId { get; set; }

        [ForeignKey("GlAccount")]
		[DataMember, Display(Name = "AccountId", ResourceType = typeof(Resources.MasBankAccountsResource))]
        public Nullable<int> AccountId { get; set; }

		[ForeignKey("WorkArea")]
		[DataMember, Display(Name = "WorkAreaId", ResourceType = typeof(Resources.MasBankAccountsResource))]
        public Nullable<int> WorkAreaId { get; set; }

		[DataMember, Display(Name = "Remarks", ResourceType = typeof(Resources.MasBankAccountsResource))]
        public string Remarks { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.MasBankAccountsResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.MasBankAccountsResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.MasBankAccountsResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.MasBankAccountsResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.MasBankAccountsResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

        // public virtual MasLookUp BankAccType { get; set; }

        public virtual FIM.MasBankBranch Branch { get; set; }

        public virtual BGM.MasBudgetSource MasBudgetSource { get; set; }

        public virtual FIM.MasBankAccount SavingBankAccount { get; set; }

        public virtual FimMasLookUp MasBankAccountType { get; set; }

		public virtual ACM.MasAccount GlAccount { get; set; }

		public virtual HRM.MasWorkArea WorkArea { get; set; }

    }
}